﻿using SqlSugar;

namespace DeZhen.DataCollection.Model.DTO.DataSourceSettings
{
    /// <summary>
    /// 数据源设置新增DTO对象
    /// </summary>
    public class DataSourceSettingsAdd
    {
        /// <summary>
        /// 数据源名称
        /// </summary>
        public string? SourceName { get; set; }

        /// <summary>
        /// 数据源类型：0 MySql，1 SqlServer，3 Oracle
        /// </summary>
        public DbType? SourceType { get; set; }

        /// <summary>
        /// 数据库地址
        /// </summary>
        public string? DatabaseUrl { get; set; }

        /// <summary>
        /// 数据库端口
        /// </summary>
        public int? Port { get; set; }

        /// <summary>
        /// 数据库名称
        /// </summary>
        public string? DatabaseName { get; set; }

        /// <summary>
        /// 登录用户名
        /// </summary>
        public string? LoginUser { get; set; }

        /// <summary>
        /// 登录密码
        /// </summary>
        public string? LoginPassword { get; set; }
    }
}
